package com.encryption.service.ca.identify.model;

import java.security.cert.X509Certificate;

import com.encryption.service.ca.util.CertificateUtil;

public class CertificateContext {
    
    private static String          issuer = "CN=Land of Promise Corporation Root CA";
    
    private static X509Certificate caCert;
    
    static {

        try {
            caCert = CertificateUtil.getInstanceFromFile("lopca.cer");
        } catch (Exception e) {
            
        }
    }

    public static String getIssuer() {
        return issuer;
    }

    public static void setIssuer(String issuer) {
        CertificateContext.issuer = issuer;
    }

    public static X509Certificate getCaCert() {
        return caCert;
    }

    public static void setCaCert(X509Certificate caCert) {
        CertificateContext.caCert = caCert;
    }

   
    
    
}
